<link href="<?php echo Yii::app()->request->baseUrl; ?>/css/style/style_news.css" rel="stylesheet" type="text/css" />
<!--正文start-->
<div class="w_960 o_a">
	<?php $this->renderPartial('/news/sidebar_nav',array('id'=>$id));?>
    <div class="video mt10 c_f">
    	<div class="col_main f_l">
        	<!--视频 start-->
        	<div class="video_show bg_fff c_f">
            	<div class="show f_l mr10">
                	<embed width="360" height="280" allowfullscreen="true" loop="true" play="true" menu="false" quality="high" wmode="opaque" src="<?php echo  $video_focus->zne_video_url;?>" classid="clsid:d27cdb6e-ae6d-11cf-96b8-4445535400000" type="application/x-shockwave-flash"></embed>
                    <h3><?php echo CHtml::link($video_focus->zne_short, array('/home/news/video_detail/', 'id'=>$video_focus->zne_id), array('target'=>'_blank'));?></h3>
                    <p class="c_999 disc"><?php echo $video_focus->zne_desc;?></p>
                </div>
                <div class="top_video_li f_l">
                	<ul class="c_f">
						<?php foreach($video as $row):?>
                    	<li>
                        	<div class="c_img"><?php echo CHtml::link(Tool::thumb($row->zne_thumb,128,85,$row->zne_short), array('/home/news/video_detail/', 'id'=>$row->zne_id), array('target'=>'_blank'));?></div>
                            <p class="mask"></p>
                            <p class="title c_white t_c"><?php echo $row->zne_short;?></p>
                        </li>
						<?php endforeach;?>
                    </ul>
                </div>
            </div>
            <!--视频 end-->
            <!--最新视频 start-->
            <div class="video_sort newest_video mt10 bg_fff">
            	<div class="hd c_f"><a class="ff_s f_r" href="/home/news/video_list/id/" title="更多">更多>></a><h2 class="fs_14 c_green2">最新视频</h2></div>
                <div class="bd">
                	<ul class="video_imgli c_f">
						<?php foreach($video_new as $row):?>
                    	<li>
                        	<div class="img"><?php echo CHtml::link(Tool::thumb($row->zne_thumb,148,110,$row->zne_short), array('/home/news/video_detail/', 'id'=>$row->zne_id), array('target'=>'_blank'));?></div>
                            <p class="title"><?php echo CHtml::link($row->zne_short, array('/home/news/video_detail/', 'id'=>$row->zne_id), array('target'=>'_blank'));?></p>
                            <p class="c_999"><span class="clicks_ico ico"></span>点击：<?php echo ($row->zne_hits)?$row->zne_hits:0;?> 次</p>
                        </li>
						<?php endforeach;?>
                    </ul>
                    <ul class="video_txtli news_li c_f">
						<?php foreach($video_newlist as $row):?>
                        <li><span class="c_999 f_r"><?php echo date('m/d', $row->zne_hits);?></span><?php echo CHtml::link($row->zne_short, array('/home/news/video_detail/', 'id'=>$row->zne_id), array('target'=>'_blank'));?></li>
						<?php endforeach;?>
                    </ul>
                </div>
            </div>
   		 	<!--最新视频 end-->
            <!--产品宣传 start-->
            <div class="video_sort mt10 bg_fff">
            	<div class="hd c_f"><a class="ff_s f_r" href="/home/news/video_list/id/41" title="更多">更多>></a><h2 class="fs_14 c_green2">产品宣传</h2></div>
                <div class="bd">
                	<ul class="video_imgli c_f">
						<?php foreach($video_pro as $row):?>
                    	<li>
                        	<div class="img"><?php echo CHtml::link(Tool::thumb($row->zne_thumb,148,110,$row->zne_short), array('/home/news/video_detail/', 'id'=>$row->zne_id), array('target'=>'_blank'));?></div>
                            <p class="title"><?php echo CHtml::link($row->zne_short, array('/home/news/video_detail/', 'id'=>$row->zne_id), array('target'=>'_blank'));?></p>
                            <p class="c_999"><span class="clicks_ico ico"></span>点击：<?php echo ($row->zne_hits)?$row->zne_hits:0;?> 次</p>
                        </li>
						<?php endforeach;?>
                    </ul>
                    <ul class="video_txtli c_f">
						
                    	<li class="item">
							<?php $vid = array_shift($video_prolist1);if($vid){?>
                        	<div class="c_img c_img70"><?php echo CHtml::link(Tool::thumb($vid->zne_thumb,70,70,$vid->zne_short), array('/home/news/video_detail/', 'id'=>$vid->zne_id), array('target'=>'_blank'));?></div>
                            <?php }?>
							<ul class="txt_li">
								<?php foreach($video_prolist1 as $row):?>
                                <li><?php echo date('m/d', $row->zne_hits);?></span><?php echo CHtml::link($row->zne_short, array('/home/news/video_detail/', 'id'=>$row->zne_id), array('target'=>'_blank'));?></li>
								<?php endforeach;?>
                            </ul>
                        </li>
                        <li class="item">
							<?php $vid = array_shift($video_prolist2);if($vid){?>
                        	<div class="c_img c_img70"><?php echo CHtml::link(Tool::thumb($vid->zne_thumb,70,70,$vid->zne_short), array('/home/news/video_detail/', 'id'=>$vid->zne_id), array('target'=>'_blank'));?></div>
                            <?php }?>
							<ul class="txt_li">
                            	<?php foreach($video_prolist2 as $row):?>
                                <li><?php echo date('m/d', $row->zne_hits);?></span><?php echo CHtml::link($row->zne_short, array('/home/news/video_detail/', 'id'=>$row->zne_id), array('target'=>'_blank'));?></li>
								<?php endforeach;?>
                            </ul>
                        </li>
                    </ul>
                </div>
            </div>
   		 	<!--产品宣传 end-->
            <!--其它视频 start-->
            <div class="video_sort mt10 bg_fff">
            	<div class="hd c_f"><a class="ff_s f_r" href="/home/news/video_list/id/42" title="更多">更多>></a><h2 class="fs_14 c_green2">其它视频</h2></div>
                <div class="bd">
                	<ul class="video_imgli c_f">
						<?php foreach($video_other as $row):?>
                    	<li>
                        	<div class="img"><?php echo CHtml::link(Tool::thumb($row->zne_thumb,148,110,$row->zne_short), array('/home/news/video_detail/', 'id'=>$row->zne_id), array('target'=>'_blank'));?></div>
                            <p class="title"><?php echo CHtml::link($row->zne_short, array('/home/news/video_detail/', 'id'=>$row->zne_id), array('target'=>'_blank'));?></p>
                            <p class="c_999"><span class="clicks_ico ico"></span>点击：<?php echo ($row->zne_hits)?$row->zne_hits:0;?> 次</p>
                        </li>
						<?php endforeach;?>
                    </ul>
                </div>
            </div>
   		 	<!--其它视频 end-->
        </div>
        <div class="col_sub f_r">
        <!--推荐宝贝 start-->
        <div class="hot_pro video_box_r bg_fff">
        	<div class="hd"><h2 class="c_green2 fs_14">推荐宝贝</h2><span class="bg hot"></span></div>
            <div class="bd">
            	<div id="hotBox">
                    <ul id="hotContent">
					<?php
                    $sql = new CDbCriteria(array(
                                'condition' => 'zp_status = 2 AND zp_state = 2',
                                'limit' => '12',
                                'order' => 'zp_sale_num DESC'
                            ));
                    $hotpro = Product::model()->findAll($sql);
                    if ($hotpro) {                        
                        foreach ($hotpro as $i) {
                            ?>
                            <li class="c_f">
                                <div class="c_img c_img70"><?php echo CHtml::link( Tool::thumb( $i->zp_pic,70,70,$i->zp_name ),array('/home/product/detail/', 'id'=>$i->zp_id ),array('target'=>'_blank','title'=>$i->zp_name) ) ?></div>
                                <p class="price"><del class="c_999 f_r mr5">&yen;<?php echo $i->zp_saleprice;?></del><strong class="c_orange fs_14">&yen;<?php echo $i->zp_price;?></strong></p>
                                <p class="title_pro c_666"><?php echo CHtml::link($i->getTitle(), array('/home/product/detail', 'id' => $val->zp_id), array('title' => '点击购买'))?></p>
                            </li>                          
                            <?php
                        }                        
                    } else {
                        ?>
                        <p style="text-align:center">没有找到商品!</p>
                    <?php } ?> 
                    </ul>
                 </div>
            </div>
        </div>
        <script type="text/javascript">
		new Marquee(["hotBox","hotContent"],0,0.1,227,320,20,4000,5000,320)
		</script>
    	<!--推荐宝贝 end-->
        <!--热点视频 start-->
        <div class="hot_video video_box_r bg_fff mt10">
        	<div class="hd"><h2 class="c_green2 fs_14">热点视频</h2></div>
            <div class="bd">
            	<ul>
					<?php foreach($video_hits as $key=>$row):?>
					<li class="c_f">
						<span class="ico_li ico_li0<?php echo $key+1;?>"><?php echo $key+1;?></span>
						<div class="c_img"><?php echo CHtml::link(Tool::thumb($row->zne_thumb,80,60,$row->zne_short), array('/home/news/video_detail/', 'id'=>$row->zne_id), array('target'=>'_blank'));?></div>
						<p class="title"><?php echo CHtml::link($row->zne_short, array('/home/news/video_detail/', 'id'=>$row->zne_id), array('target'=>'_blank'));?></p>
						<p class="c_999"><span class="clicks_ico ico"></span>点击：<em class="c_blue3"><?php echo ($row->zne_hits)?$row->zne_hits:0;?> </em> 次</p>
					</li>
					<?php endforeach;?>
                </ul>
            </div>
        </div>
        <!--热点视频 end-->
        <!-- 视频首页商城动态上方A 广告位  255*120 start -->
		<div class="mt10">
			<?php $adzone = Adzone::model()->getData(66,$cid=0);
				foreach( (array)$adzone['ads'] as $key=>$value){?>
				<?php echo CHtml::link(CHtml::image($value['zds_file_url'],$value['zdz_desc'],array('height'=>$adzone['zdz_height'],'width'=>$adzone['zdz_width'])),$value['zds_url'],array('target'=>'_blank'))?>
			<?php }?>
		</div>
		<!-- 广告位 end -->
        <!--商城动态 start-->
        <div class="store_news video_box_r bg_fff mt10">
        	<div class="hd"><?php echo CHtml::link('更多', array('/home/news/list/id/5'), array('class'=>'f_r ff_s'));?><h2 class="c_green2 fs_14">商城动态</h2></div>
            <div class="bd">
            	<ul class="news_li">
					<?php foreach($news_shop as $row):?>
                	<li><?php echo CHtml::link($row->zne_short, array('/home/news/detail/', 'id'=>$row->zne_id), array('target'=>'_blank'));?></li>
					<?php endforeach;?>
                </ul>
            </div>
        </div>
        <!--商城动态 end-->
        <!-- 视频首页商城动态下方B 广告位  255*90 start -->
		<div class="mt10">
			<?php $adzone = Adzone::model()->getData(67,$cid=0);
				foreach( (array)$adzone['ads'] as $key=>$value){?>
				<?php echo CHtml::link(CHtml::image($value['zds_file_url'],$value['zdz_desc'],array('height'=>$adzone['zdz_height'],'width'=>$adzone['zdz_width'])),$value['zds_url'],array('target'=>'_blank'))?>
			<?php }?>
		</div>
		<!-- 广告位 end -->
        </div>
    </div>   
</div>
<!--正文end-->